package myschool.myshchool15.homework;

public class ConsumptionList {
    public static void main(String[] args){
        int shirt = 245;
        int shoes = 570;
        int racket = 320;
        System.out.println("*************消费清单************");
        System.out.print("购买物品\t");
        System.out.print("单价\t\t");
        System.out.print("个数\t\t");
        System.out.println("金额");
        System.out.print("T恤\t\t");
        System.out.print("￥"+shirt+"\t");
        System.out.print("2\t\t");
        System.out.println("￥"+shirt*2);
        System.out.print("网球鞋\t");
        System.out.print("￥"+shoes+"\t");
        System.out.print("1\t\t");
        System.out.println("￥"+shoes);
        System.out.print("网球拍\t");
        System.out.print("￥"+racket+"\t");
        System.out.print("1\t\t");
        System.out.println("￥"+racket);
        double discount = 8;
        System.out.println("折扣："+discount+"折");
        System.out.println("消费总金额\t￥"+(shirt*2+shoes+racket)*discount*0.1);
        System.out.println("实际交费\t￥1500");
        System.out.println("找钱\t\t￥"+(1500-(shirt*2+shoes+racket)*discount*0.1));
        System.out.println("本次购物所获的积分是：33");




    }
}
